let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n138,
                    i =
                    (this && this.__extends) ||
                    ((_n138 = function n(t, e) {
                            return (_n138 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n138(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        });
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.PowerCom = void 0);
                var r = t('PropertyCom'),
                    a = t('ComUtils'),
                    s = t('PlayerMrg'),
                    c = t('TimeMrg'),
                    l = t('DateTimeUtils'),
                    u = t('ConstantCfg'),
                    h = (function(t) {
                        function e() {
                            return (null !== t && t.apply(this, arguments)) || this;
                        }
                        return (
                            i(e, t),
                            (e.prototype.onInit = function() {
                                t.prototype.onInit.call(this),
                                    (this._txtTime = a.default.getComponent(
                                        cc.Label,
                                        this.view,
                                        'txtTime'
                                    ));
                            }),
                            (e.prototype.onUpdate = function() {
                                var t = s.PlayerMrg.ins.powerRecoverTime - c.TimeMrg.serverTime;
                                t > 0 ?
                                    (this._txtTime.node.active ||
                                        (this._txtTime.node.active = !0),
                                        (this._txtTime.string = l.DateTimeUtils.formatCountdown(
                                            t,
                                            2
                                        ))) :
                                    this._txtTime.node.active &&
                                    (this._txtTime.node.active = !1);
                            }),
                            (e.prototype.refresh = function() {
                                this._txtValue.string =
                                    this.format(this.value) + '/' + u.ConstantCfg.ins.getValue(2);
                            }),
                            e
                        );
                    })(r.PropertyCom);
                (o.PowerCom = h), console.log("end");
            module.exports =  e.exports;